﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace webapiDemo.Controllers
{
    [AuthFilter]
    public class TestController : ApiController
    {
        [HttpGet]
        public ApiResult t1() {
            int b = 0;
            int a = 2 / b;
            return new ApiResult {
                message="ok"
            };
        }
        [HttpGet]
        public ApiResult t2()
        {
            return new ApiResult
            {
                message = "ok t2"
            };
        }


    }
}
